package com.qyhl.webtv.commonlib.entity.act;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by qyhl2 on 2017/12/25.
 */

public class ActivityViewOptionBean implements Parcelable {

    /**
     * ID
     */
    private Integer id;

    /**
     * 子组件名称
     */
    private String optionName;

    /**
     * 自定义活动组件ID
     */
    private Integer activityViewId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOptionName() {
        return optionName;
    }

    public void setOptionName(String optionName) {
        this.optionName = optionName;
    }

    public Integer getActivityViewId() {
        return activityViewId;
    }

    public void setActivityViewId(Integer activityViewId) {
        this.activityViewId = activityViewId;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.id);
        dest.writeString(this.optionName);
        dest.writeValue(this.activityViewId);
    }

    public ActivityViewOptionBean() {
    }

    protected ActivityViewOptionBean(Parcel in) {
        this.id = (Integer) in.readValue(Integer.class.getClassLoader());
        this.optionName = in.readString();
        this.activityViewId = (Integer) in.readValue(Integer.class.getClassLoader());
    }

    public static final Creator<ActivityViewOptionBean> CREATOR = new Creator<ActivityViewOptionBean>() {
        @Override
        public ActivityViewOptionBean createFromParcel(Parcel source) {
            return new ActivityViewOptionBean(source);
        }

        @Override
        public ActivityViewOptionBean[] newArray(int size) {
            return new ActivityViewOptionBean[size];
        }
    };
}
